/*
*URLText
*chenjie
*2012-5-3
*/
package com.player
{
	import fl.controls.Button;
	import fl.controls.TextInput;
	
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class URLSp extends Sprite
	{
		public var textField:TextInput
		private var goBtn:Button
		public function URLSp()
		{
			super();
			textField=new TextInput()
			goBtn=new Button()
				
			textField.width=100
				
			addChild(textField)
			
			goBtn.x=textField.x+textField.width+10
			goBtn.label="Go"
			addChild(goBtn)
			goBtn.addEventListener(MouseEvent.CLICK,doClick)
		}
		
		public function doClick(e:MouseEvent):void{
		    dispatchEvent(new Event(Event.COMPLETE))
		}
		
	}
}